﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Data.Repositories;
using CantinhodaCegonha.Models.Helpers;

namespace CantinhodaCegonha.Controllers
{
    [CompressFilter]
    public class HomeController : Controller
    {
        //[OutputCache(CacheProfile="Cache1Hora")]
        public ActionResult Index()
        {
            ArtigoRepository nov = new ArtigoRepository();
            ViewBag.Novidades = nov.GetNovidades();

            //if (User.Identity.IsAuthenticated)
            //{
            //    UserRepository rep = new UserRepository();
            //    ViewBag.UserData = rep.GetUserByEmail(User.Identity.Name);
            //}

            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
